<div id="page-heading">
	<h1>{$title}</h1>
        {section name=sec3 loop=$product_arr}
        <h2>{$product_arr[sec3].title}</h2>
         <h3>{$product_arr[sec3].add_id}</h3>
         <br>
         <a onclick="loadPage('product/index')" href="javascript: void(0);">Back to product list</a>
          &nbsp;
           <a onclick="loadPage('product/addproduct/101000100001');" href="javascript: void(0);">Add new product</a>
          &nbsp;
         <a onclick="loadPage('product/editproduct/{$productid}');" href="javascript: void(0);">Back to prodcuct details</a>
          &nbsp;
         <a onclick="loadPage('product/addimage/{$productid}');" href="javascript: void(0);">Add product image</a>
          &nbsp;
         <a onclick="loadPage('product/addfeatures/{$productid}');" href="javascript: void(0);">Add product Features</a>

            {/section}
</div>
{section name=sec1 loop=$product_arr}
<table border="0" width="80%" cellpadding="0" cellspacing="0" id="product-table">
	<tr>
		<th colspan="2" align="left" class="table-header-repeat line-left">&nbsp;</th>
	</tr>
	<tr>
		<td width="20%">Product Title</td>
		<td width="60%"><input type="text" name="product_title" id="product_title" value="{$product_arr[sec1].title}" class="inp-form" style="width: 500px;" /></td>
	</tr>
        <tr>
		<td width="20%">Product Item Code</td>
		<td width="60%"><input onblur="checkitemcodeupdate(this.value,'{$productid}')" type="text" name="item_code" id="item_code" value="{$product_arr[sec1].add_id}" class="inp-form" style="width: 500px;" />
                <input type="hidden" value="{$product_arr[sec1].item_code}" name="hdnitemcode"  id="hdnitemcode"/>
                </td>
	</tr>
	<tr>
		<td>Product Description (short)</td>
		<td>{$objeditorFCK->editorfck("productdesc_en", "{$product_arr[sec1].shortdsc}", "98%", 200)}</td>
	</tr>
	<tr>
		<td>Product Description (detail)</td>
		<td>{$objeditorFCK->editorfck("productdesc_detail", "{$product_arr[sec1].detaildsc}", "98%", 200)}</td>
	</tr>
	
	<tr>
		<td width="20%">Product Price</td>
		<td width="60%"><input type="text" name="product_price_lkr" id="product_price_lkr" value="{$product_arr[sec1].addamount}" class="inp-form" style="width: 100px;" /></td>
	</tr>
         <tr>
		
		
		<td>Category</td>
		
		</select>
		</td>
	</tr>
	<tr>
		<td>Sub Category</td>
		
			</div></td>
	</tr>
	<!--<tr>
		<td>New Arrival</td>
		<td>
			<input type="checkbox" name="newarrival" id="newarrival" value="1" />&nbsp;<span class="small_text2">(set this item as new arrival)</span>
		</td>
	</tr>	-->
	<tr>
		<td>Status</td>
		<td><select name="cmbStatus" id="cmbStatus">
		<option value="">Select Status</option>		
		<option value="1" {if $product_arr[sec1].status eq 1} {"selected='selected'"} {/if}>Show</option>
		<option value="0" {if $product_arr[sec1].status eq 0} {"selected='selected'"} {/if}>Hide</option>		
		</select>
		</td>
	</tr>
	<tr>
	<td>&nbsp;</td>
	<td><div class="edit-icoset"><a href="javascript: void(0);" onclick="updateProduct();"><img src="images/icons/save-2.gif" />Update</a>
	<input type="hidden" name="productid" id="productid" value="{$productid}" /></td>
	</tr>
</table>
{/section}